The sync program synchronizes a subject with a realm-prefixed name
and no explicit organization through the UUID-keyed
idempotent PUT /api/rbac/subjects/{subjectUuid}, just like
all PR#238 sync requests. The organization is derived from the name
prefix (the part before the first -, without the leading
/ of GROUP names) and stored with the subject.
| name | value |
|---|---|
| subjectUuid | 239a0003-0000-0000-0000-000000000003 |
| subjectName | xyz-carol |
| subjectType | USER |
| name | value |
|---|---|
| expectedOrganization | xyz |
HTTP PUT "/api/rbac/subjects/239a0003-0000-0000-0000-000000000003" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"name" : "xyz-carol",
"type" : "USER"
}
EOF
=> status: 201 CREATED 239a0003-0000-0000-0000-000000000003
HTTP GET "/api/rbac/subjects/239a0003-0000-0000-0000-000000000003" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
{
"uuid" : "239a0003-0000-0000-0000-000000000003",
"name" : "xyz-carol",
"organization" : "xyz",
"type" : "USER"
}
generated on 2026-08-10 01:38:10 for branch